<%--
  Created by IntelliJ IDEA.
  User: 27933
  Date: 2021/10/9
  Time: 10:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="/jquery-1.7.2.js"></script>
</head>
<body>
<form action="registerServlet" method="post">
    <input type="text" placeholder="请输入注册用户名"  name="us" >
    <br>
    <br>
    <input type="text" name="code" placeholder="请输入验证码" style="width:80px;display: inline-block;margin-top: -10px">
    <img src="/kapcha.jsp" alt="验证码" width="80" id="code_img">
    <br>
    <br>
    <input type="password" placeholder="请输入注册密码" name="ps">
    <br>
    <input type="submit" value="点击注册">
</form>
<script type="text/javascript">
    $(function (){
        $("#code_img").click(function () {
           this.src = "${basePath}/kapcha.jsp";
        });

    });
</script>


</body>
</html>
